package com.da.javatest.niuke.jianzhi;

/**
 * @author chenlida
 * @date 2020/10/23 15:10
 * https://www.nowcoder.com/practice/12d959b108cb42b1ab72cef4d36af5ec?
 * tpId=13&tags=&title=&diffculty=0&judgeStatus=0&rp=1
 */
public class C43Solution {
    public static String LeftRotateString(String str, int n) {
        if (str.length() < n) {
            return str;
        }
        return (str + str).substring(n, str.length() + n);
    }

    public static void main(String[] args) {
        System.out.println(LeftRotateString("abcXYZdef", 3));
    }
}
